package com.treeroot.planeservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Description: 启动类
 * @Author:treeRoot
 * @Email:553503639@qq.com
 * @Date: Create in 13:32 / 2022/4/19
 */
@SpringBootApplication
@EnableHystrix
@EnableCircuitBreaker //在SpringCloud中使用断路器  添加熔断支持
@EnableHystrixDashboard //启用Hystrix仪表板
@EnableDiscoveryClient   //nacos注册
@ComponentScan (basePackages = {"com.treeroot"})
public class PlaneApplication {
    public static void main(String[] args) {
        SpringApplication.run(PlaneApplication.class,args);


        }

    }